package com.eningqu.aipen.logic.model.chat;

import com.google.gson.annotations.SerializedName;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Package:com.eningqu.aipen.logic.model
 * Author:starr
 * Time:2023/10/4  14:52
 * Description: 智能问答接口响应实体类
 */
@NoArgsConstructor
@Data
public class ChatResponseBean {

    @SerializedName("id")
    public String id;
    @SerializedName("object")
    public String object;
    @SerializedName("created")
    public Integer created;
    @SerializedName("result")
    public String result;
    @SerializedName("is_truncated")
    public Boolean isTruncated;
    @SerializedName("need_clear_history")
    public Boolean needClearHistory;
    @SerializedName("usage")
    public UsageDTO usage;

    @NoArgsConstructor
    @Data
    public static class UsageDTO {
        @SerializedName("prompt_tokens")
        public Integer promptTokens;
        @SerializedName("completion_tokens")
        public Integer completionTokens;
        @SerializedName("total_tokens")
        public Integer totalTokens;
    }
}
